<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class BaseModel extends Model
{
    use HasFactory;

    use SoftDeletes;

    const CREATED_AT = 'create_time';

    const UPDATED_AT = 'update_time';

    const DELETED_AT = 'delete_time';

    protected $primaryKey = 'id';

    protected $guarded = ['create_time', 'update_time', 'delete_time'];

    protected $hidden = [
        'delete_time'
    ];
}